<?php
	
	$view = $this->params->view;
	$extension = $this->params->ext;
	
	if ($view == "" or $extension == "")
	{
		if ($this->puzzle->config['default_view_name'] == "" or $this->puzzle->config['default_view_extension'] == "")
		{
			die("PHP-Puzzle :: Big-bang :: No default view specified");
		}
		
		$view = $this->puzzle->config['default_view_name'];
		$extension = $this->puzzle->config['default_view_extension'];
	}
	
	$view = $this->puzzle->PVM->createView($view, $extension);
	
	if ($view->view_type == "root" or $view->view_type == "sub")
	{
		$view->initialize();
		$view->render();
	}
	else
	{
		die("PHP-Puzzle :: Big-bang :: View $view in extension $extension is not root");
	}
	
?>
